<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #lb{color: red}
        .xx{color: blue}
        input[type="text"]:{background-color: red}
        div>div>div>p{color: yellow}
        div div p{background-color: pink}
        a:link{color: green}
        a:visited{color: red}
        a:hover{color: blueviolet}
        a:active{color: pink}
    </style>
</head>
<body>
    <ul>
        <li id="lb">刘备</li>
        <li class="xx">关于</li>
        <li>张飞</li>
    </ul>
    <p class="xx">橙子</p>
    <p>苹果</p>
<input type="text">
<input type="password">

<div>
    <p>p1</p>
    <div>
        <p>p2</p>
    </div>
    <div>
        <div><p>p3</p></div>
    </div>
</div>

<a href="http://www.baidu.com">腾讯网址</a>
</body>
</html>